package org.zachary.creditbusiness.commodityandhouse.service;

import org.zachary.creditbusiness.commodityandhouse.entity.HouseOrder;

import org.zachary.creditbusiness.commodityandhouse.entity.HouseOrder;


import java.util.List;

public interface HouseOrderService {
    int insert(HouseOrder houseOrder);
    int update(HouseOrder houseOrder);
    int deleteById(Integer id);
    HouseOrder selectById(Integer id);
    List<HouseOrder> selectAll();

    // 新增方法：处理房屋租赁下单逻辑
    void placeHouseOrder(HouseOrder houseOrder);

    // 根据用户ID获取订单列表
    List<HouseOrder> getOrdersByUserId(Integer userId);

    // 支付房屋订单
    void payHouseOrder(Integer orderId);

    // 更新订单状态

    // 更新订单状态
    int updateOrderStatus(Integer orderId, Integer status, String reason);
}
